V2EX  ›  英汉词典

Type Conflict

定义 Definition

type conflict(类型冲突):指在编程或类型系统中,不同数据类型之间发生不兼容或不匹配,导致无法安全地赋值、运算、调用函数,或引发编译/运行错误的情况。常见于静态类型语言的编译期类型检查,也可能出现在动态类型语言的运行期。

发音 Pronunciation (IPA)

/taɪp ˈkɑːnflɪkt/

例句 Examples

A type conflict prevents this function from compiling.
类型冲突会导致这个函数无法通过编译。

When integrating the new API, we discovered a subtle type conflict between the JSON payload and the model’s expected schema, which caused intermittent failures.
在集成新 API 时,我们发现 JSON 负载与模型期望的结构之间存在细微的类型冲突,导致间歇性故障。

词源 Etymology

type 源自希腊语 typos(“印记、模型、样式”),后来在语言学与计算机科学中引申为“类别/类型”。conflict 源自拉丁语 conflictus(“冲突、碰撞”)。合在一起,type conflict 直观表达“类型之间发生碰撞与不兼容”。

相关词 Related Words

文学与作品用例 Literary & Works

  • Types and Programming Languages(Benjamin C. Pierce):讨论类型系统如何发现并避免各类“类型不一致/冲突”问题。
  • The C Programming Language(Kernighan & Ritchie):在类型、转换与表达式章节中涉及类似“类型不兼容导致错误”的情形。
  • Effective Java(Joshua Bloch):在泛型、类型安全与 API 设计相关条目中多次讨论避免类型不兼容(与 type conflict 同类问题)。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2796 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 02:58 · PVG 10:58 · LAX 18:58 · JFK 21:58
♥ Do have faith in what you're doing.